package com.yanqu.road.entity.log.cross.hsisland;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_hs_island_donate", desc = "海神岛-捐献日志", autoSave = true, dataUpload = true, eventName = "seagod_donate", uploadCk = true, isCross = true)
public class LogCrossHsIslandDonate extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityid", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "商会ID", dataAttribute = "guild_id")
    private String unionId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "捐献数量", dataAttribute = "seagod_donum")
    private int num;

    @FieldTypeAnnotation(desc = "捐献经验（进度）", dataAttribute = "seagod_boatpro")
    private long exp;

    @FieldTypeAnnotation(desc = "等级", dataAttribute = "seagod_boatlev")
    private int level;

    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "seagod_get")
    private String reward;

    public LogCrossHsIslandDonate(int activityId, int groupId, String unionId, long userId, int num, long exp, int level, String reward) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.unionId = unionId;
        this.userId = userId;
        this.num = num;
        this.exp = exp;
        this.level = level;
        this.reward = reward;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
